﻿using Blog190311.Models.DBModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Blog190311.Models.DAL
{
    public class MessageService
    {
        public int SaveMessage(Message message)
        {
            string sql = string.Format("insert into Message (name ,cont ,time ,state)values('{0}', '{1}',GETDATE() , '未回复')",message .Name ,message .Cont);
            int num = DBHelper.ExecuteNonQuery(sql);
            return num;
        }
    }
}